package com.example.xksys.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface ScMapper {
    @Insert("insert into sc values(#{loginName},#{cKey}) " )
    int add(Map<String,String> param);
    @Select("select * from sc where loginName=#{loginName}")
    List<Map<String,Object>> check(Map<String,String> param);
    @Delete("delete from sc where cKey=#{delCKey}")
    int delete(Map<String,String>param);
}
